/*****************************************************************************
 * Copyright (c) 2010 -, Anders All rights reserved
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  Contact: Anders Uddenberg (anders.uddenberg@gmail.com)
 * 
 *
 ****************************************************************************/
package org.easypr.organizer.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;


// TODO: Auto-generated Javadoc
/**
 * The Class JDOMeeting.
 */
@PersistenceCapable
public class JDOMeeting {

	/** The key. */
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	//@Persistent
	//private long id;
    /** The contactid. */
	@Persistent
    private long contactid;
    
    /** The date. */
    @Persistent
	private int date;
    
    /** The notes. */
    @Persistent
	private String notes; // from google
    
    /** The belong to. */
    @Persistent
    private String belongTo; // email address 
	
	
	/**
	 * Instantiates a new jDO meeting.
	 *
	 * @param key the key
	 * @param contactid the contactid
	 * @param belongTo the belong to
	 * @param date the date
	 * @param notes the notes
	 */
	public JDOMeeting(Key key, long contactid, String belongTo, int date, String notes) {
		this.key = key;
		this.contactid = contactid;
		this.belongTo = belongTo;
		this.date = date;
		this.notes = notes;
	}
	
	/**
	 * Gets the key.
	 *
	 * @return the key
	 */
	public Key getKey() {
		return this.key;
	}

	/**
	 * Gets the contact id.
	 *
	 * @return the contact id
	 */
	public long getContactId() {
		return this.contactid;
	}
	
	/**
	 * Gets the belong to.
	 *
	 * @return the belong to
	 */
	public String getBelongTo() {
		return this.belongTo;
	}
	
	/**
	 * Gets the date.
	 *
	 * @return the date
	 */
	public int getDate() {
		return this.date;
	}
	
	/**
	 * Gets the notes.
	 *
	 * @return the notes
	 */
	public String getNotes() {
		return this.notes;
	}
}
